﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MsLineIframe.aspx.cs" Inherits="ShuiWenJu_RepRealTime_MsLineIframe" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <link rel="stylesheet" href="Css/Style.css" type="text/css" />

    <script type="text/javascript" language="JavaScript" src="Js/FusionCharts.js"></script>

    <style type="text/css">
        body
        {
            margin: 0;
            padding: 0;
            font-size: 11px;
        }
        form
        {
            margin: 0;
            padding: 0;
            margin-top: 8px;
            margin-left: 3px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div style="margin-left: -21px; margin-top: -10px;">
        <table width="100%">
            <tr>
                <td align="center" >
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;当前站点：<asp:Literal ID="ltSiteName" runat="server"></asp:Literal>
                </td>
            </tr>
        </table>
        <div id="chartdiv" align="center" style="margin-top:-3px;">
            FusionCharts.
        </div>
    </div>

    <script type="text/javascript" language="javascript">
     var $=function(id){return document.getElementById(id);}
     
    var FUN = function(){};
    var DoAjax = function(PFUN){
     FUN.prototype=PFUN;
     var _FUN = new FUN();
     
        var xmlHttp;
        if(window.ActiveXObject)
            xmlHttp =  new ActiveXObject("Microsoft.XMLHTTP");
        else if(window.XMLHttpRequest)
            xmlHttp =  new XMLHttpRequest();
            
        xmlHttp.open("GET",_FUN.url);
        xmlHttp.onreadystatechange = function(){
            if(xmlHttp.readyState==4 && xmlHttp.status == 200){
       _FUN.success(xmlHttp.responseText);
            }
        }
        xmlHttp.send(null);
    }

    function refresh(){
     DoAjax({
      type:"GET",
      url:"MsLineIframe.aspx?act=site",
      success:function(respText)
      {
        loadFlash("A0013",respText)
      }
     });
    }


    function loadFlash(type,siteId)
    {
       var fSwf="FCF_Line";
       var chart = new FusionCharts("Swf/"+fSwf+".swf", "ChartId", "220", "166");
       chart.setDataURL("GetXmlIframe.aspx?pram="+type+","+siteId);		   
       chart.render("chartdiv");
    }
    loadFlash("A0013",'<%=Session["currentSiteId"] %>')
    var sh;
    sh=setInterval(refresh,300000);
    </script>

    </form>
</body>
</html>
